Spirometry with reversibility test